<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/backend.booking.css" />
<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/backend.booking.completed.css" />
<script type="text/javascript" src="<?=$this->baseUrl()?>/js/backend.booking.js"></script>
<?php if(count($this->bookings)>0): ?>
<div id="view-content" baseurl="<?=$this->baseUrl()?>" page="completed">
    <div id="table-header">
        <div class="user">Customer Name</div>
        <div class="venue">Venue Name</div>
        <div class="date">Starting Date</div>
        <div class="duration">Duration (day)</div>
        <div class="pstatus">Payment Status</div>
        <div class="payment">Total Payment (Rp)</div>
    </div>
    <div id="table-content">
        <?php foreach ($this->bookings as $val): ?>
            <div class="table-row" bid="<?=$val['booking_id']?>">
                <div class="user data"><?= $val['u_name'] ?></div>
                <div class="venue data"><?= $val['v_name'] ?></div>
                <div class="date data"><?= $val['start_date'] ?></div>
                <div class="duration data"><?= $val['duration'] ?></div>
                <div class="pstatus data"><?= $val['pstatus_name'] ?></div>
                <div class="payment data"><?= $val['total_payment'] ?></div>
            </div>
        <?php endforeach; ?>
    </div> <!-- end of table-content -->
    <div id="hiddenform">
        <form name="frmAct" id="frmAct" action="" method="post">
            <?=$this->formHidden("id","")?>
            <?=$this->formHidden("act","")?>
            <?=$this->formHidden("prev","")?>
            <?=$this->formHidden("reason","")?>
        </form>
    </div>
</div>
<?php else: ?>
<div style="margin-top: 20px;"><i>No record found</i></div>
<?php endif; ?>